package ui.components;

import javax.swing.*;
/**
 * User: [J0k3r]
 * Date: 23.02.2009
 * Time: 13:13:23
 */

public class JJMultilineTooltip
        extends JToolTip
{
    private static final String uiClassID = "ToolTipUI";

    String tipText;
    JComponent component;

    public JJMultilineTooltip() {
        updateUI();
    }

    public void updateUI() {
        setUI(MultiLineToolTipUI.createUI(this));
    }

    public void setColumns(int columns)
    {
        this.columns = columns;
        this.fixedwidth = 0;
    }

    public int getColumns()
    {
        return columns;
    }

    public void setFixedWidth(int width)
    {
        this.fixedwidth = width;
        this.columns = 0;
    }

    public int getFixedWidth()
    {
        return fixedwidth;
    }

    protected int columns = 0;
    protected int fixedwidth = 0;
}
